package com.learn.multDataSource.mapper.mysql;

import com.learn.multDataSource.model.mysql.TKnowEditor;
import com.learn.multDataSource.model.mysql.TKnowEditorExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TKnowEditorMapper {
    int countByExample(TKnowEditorExample example);

    int deleteByExample(TKnowEditorExample example);

    int deleteByPrimaryKey(@Param("knowId") Long knowId, @Param("editorType") Byte editorType, @Param("editorId") Long editorId);

    int insert(TKnowEditor record);

    int insertSelective(TKnowEditor record);

    List<TKnowEditor> selectByExample(TKnowEditorExample example);

    TKnowEditor selectByPrimaryKey(@Param("knowId") Long knowId, @Param("editorType") Byte editorType, @Param("editorId") Long editorId);

    int updateByExampleSelective(@Param("record") TKnowEditor record, @Param("example") TKnowEditorExample example);

    int updateByExample(@Param("record") TKnowEditor record, @Param("example") TKnowEditorExample example);

    int updateByPrimaryKeySelective(TKnowEditor record);

    int updateByPrimaryKey(TKnowEditor record);
}